<template>
  <a-config-provider :locale="locale">
    <div id="app" >
      <Header></Header>
      <router-view/>
      <!-- 部分路由不应该包含这个Footer -->
      <!-- <Footer v-if="excludeRoutes.indexOf($route.name) == -1"></Footer> -->
      <Footer></Footer>
    </div>
  </a-config-provider>
</template>

<script>
import zhCN from 'ant-design-vue/lib/locale-provider/zh_CN'
import Header from '@/components/header/Header';
import Footer from '@/components/footer/Footer';
export default {
  name: 'App', 
  data () {
    return {
      locale: zhCN,
    };
  },
  components: {
     Header,
    Footer
  }
};
</script>
